package com.oak.interviewdemo.sys.entity;

import java.time.LocalDate;
import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author guoxy
 * @since 2020-05-10
 */
@Data
@TableName("student")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Student implements Serializable {

    private static final long serialVersionUID = 5222722217536640551L;

    @TableId
    private Integer id;

    /**
     * 用户名
     */
    @TableField("username")
    private String username;

    /**
     * 性别
     */
    private String sex;

    /**
     * 职业
     */
    private String profession;

    /**
     * 出生日期
     */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date birthday;

    /**
     * 家乡
     */
    private String hometown;

    /**
     * 爱好
     */
    private String hobby;

    /**
     * 删除状态：0：正常；1删除
     */
    private Boolean status;


}
